package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author shuai.zhang  on 2018/10/12
 * @description
 */
@ApiModel("发表评论的请求体")
public class WtPostCommentRequest{
    @ApiModelProperty(value = "评论主题")
    @NotNull(message = "评论针对的文章不能为空")
    private Long commentPostId;

    @ApiModelProperty(value = "评论内容")
    @NotNull(message = "评论内容不能为空")
    @Size(min = 1,max = 500,message = "评论字数应为1-500个字")
    private String commentContent;

    @ApiModelProperty(value = "上级评论")
    private Long commentParent = 0L;
}
